package edu.nf.ch01;

import edu.nf.ch01.entity.User;
import edu.nf.ch01.service.UserService;

import java.util.HashMap;
import java.util.Map;

/**
 * @author wangl
 * @date 2025/4/22
 */
public class Main {

    public static void main(String[] args) {
        UserService service = new UserService();

//        User user = new User();
//        user.setName("user1");
//        user.setAge(20);
//        service.saveUser(user);

        Map<String, Object> params = new HashMap<>();
        params.put("name", "user2");
        params.put("age", 22);
        service.saveUser2(params);
    }
}